package game.games.rpg;

import game.gfx.ColoredChar;
import game.gfx.ConsoleColor;

public abstract class AbstractColoredCharRenderer extends AttributedObject implements IColoredCharRenderer
{
    private final ColoredChar c;
    
    public AbstractColoredCharRenderer(ColoredChar c)
    {
        this.c = c;
    }
    
    public AbstractColoredCharRenderer()
    {
        this(new ColoredChar(' ', ConsoleColor.DEFAULT));
    }
    
    public AbstractColoredCharRenderer(char c, ConsoleColor color)
    {
        this(new ColoredChar(c, color));
    }
    
    @Override
    public ColoredChar getChar()
    {
        return c.clone();
    }
}
